<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<%= stylesheet_link_tag "site" %>
	<meta name="generator" content="TextMate http://macromates.com/">
	<meta name="author" content="sjavey">
	<!-- Date: 2007-08-12 -->
	<title><%= @title %></title>
	<%= stylesheet_link_tag "site" %>
	<%= javascript_include_tag :defaults %>
</head>
<body>
	<div id="whole_page">
		<div id="header">Ruutr.com</div>
		<div id="nav">
			<%= nav_link "Home", "site" %> |
			<%= nav_link "About", "site", "about" %> |
			<%= nav_link "Help", "site", "help" %>
			<span style="float: right">
				<% if logged_in? -%>
					<%= nav_link "Hub", "user", "index" %> |
					<%= nav_link "Logout", "user", "logout" %>
				<% else -%>
					<%= nav_link "Register", "user", "register" %> |
					<%= nav_link "Login", "user", "login" %>
				<% end -%>
			</span>
		</div>
		<div id="content">
			<% if flash[:notice] -%>
				<div id="notice"><%= flash[:notice] %></div>
			<% end -%>
			<%= yield %>
		</div>
		<% if ENV["RAILS_ENV"] == "development" %>
			<div id="debug">
				<a href="#" onclick="Element.toggle('params_debug_info'); return false">params</a> |
				<a href="#" onclick="Element.toggle('session_debug_info'); return false">session</a> |
				<a href="#" onclick="Element.toggle('env_debug_info'); return false">env</a> |
				<a href="#" onclick="Element.toggle('request_debug_info'); return false">request</a> |
				<a href="#" onclick="Element.toggle('request_uri'); return false">request uri</a>
				<fieldset id="params_debug_info" class="debug_info" style="display:none">
					<legend>params</legend>
					<%= debug(params)%>
				</fieldset>
				<fieldset id="session_debug_info" class="debug_info" style="display:none">
					<legend>session</legend>
					<%= debug(session)%>
				</fieldset>
				<fieldset id="env_debug_info" class="debug_info" style="display:none">
					<legend>env</legend>
					<%= debug(request.env)%>
				</fieldset>
				<fieldset id="request_debug_info" class="debug_info" style="display:none">
					<legend>request</legend>
					<%= debug(request)%>
				</fieldset>
				<fieldset id="request_uri" class="debug_info" style="display:none">
					<legend>request uri</legend>
					<%= debug(request.request_uri)%>
				</fieldset>
			</div>
		<% end %>
	</div>
</body>
</html>
